package com.kay.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description:
 * @Author: Kay
 * @CreateDate: 2021/9/18$ 12:45$
 * @UpdateUser: Kay
 * @UpdateDate: 2021/9/18$ 12:45$
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lagou_user")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String email;

    private String password;

    public User(String email, String password) {
        this.email = email;
        this.password = password;
    }
}
